package com.xjc.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author : XJC
 * @Description :
 * @create : 2022/9/17 15:29
 */

@RestController
@RequestMapping("/gateway")
public class GateWayTestController {

    @Value("${spring.cloud.gateway.name}")
    private String name;

    @RequestMapping("/test")
    public String test(){
        return name;
    }

}
